package com.example.day01.contract;

import com.example.mvp.model.IModel;
import com.example.mvp.presenter.IPresenter;
import com.example.mvp.view.IView;

import java.util.HashMap;

import io.reactivex.Observable;

public interface LoginContract {


    interface LoginView  extends IView {
        String getUsername();
        String getPwd();
        void goMain();
    }

    interface RegView  extends IView {
        String getUsername();
        String getPwd();
        String getRePwd();
        void goMain();
    }

    interface XiaView  extends IView {
        void XiaMed(String json);
    }

    //model 数据
    interface LoginModel extends IModel {
        //注册
        Observable requestRegister(HashMap<String,String>map);
        //登录
        Observable requestLogin(HashMap<String,String>map);
        //大虾串
        Observable requestXia(HashMap<String,String>map);


    }

    interface LoginPresenter extends IPresenter {
        void login();
        void register();
        void Xiadata();
    }

}
